package com.cz.datafetcher.common;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;


public class ReflectionUtils {
    public static Type getGenericParameterType(Class cls, int index){
        return ((ParameterizedType) cls.getGenericSuperclass()).getActualTypeArguments()[index];
    }
}
